#ifndef __IMAGEDIRECTORY_H__
#define __IMAGEDIRECTORY_H__

#include "ImageBase.h"
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <dirent.h>


class ImageDirectory :public ImageBase {

public:
	ImageDirectory();
	ImageDirectory(string path,unsigned int width,unsigned int height);
	~ImageDirectory();

	int getImage(Mat &image) override;
	int openDevice() override;
	int closeDevice() override;

	void getFileNames(string path,vector<string>& filenames);



private:
	string path;
	vector<string> filenames;
	unsigned int index;
	unsigned int count;
};



#endif